package org.jypj.dev.model;

import com.google.gson.Gson;

import java.util.List;

/**
 * 消息表 通知表
 *
 * @author chenyu
 */
public class CommonMessage implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    private String id; //主键ID
    private String content; //消息的纯文本内容
    private String createTime; //消息创建时间
    private String sendTime; //消息发送时间
    private String sendUser; //发送者
    private String receiverUser; //接受者
    private String receiverDep; //接受的部门
    private String receiverName;//接收者姓名包括部门名称和人员姓名，使用,分隔
    private int status; //0,未发送，1已发送

    private List<User> users;//用户列表
    private List<CodeData> deps;//部门列表

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getSendTime() {
        return this.sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getSendUser() {
        return this.sendUser;
    }

    public void setSendUser(String sendUser) {
        this.sendUser = sendUser;
    }

    public String getReceiverUser() {
        return this.receiverUser;
    }

    public void setReceiverUser(String receiverUser) {
        this.receiverUser = receiverUser;
    }

    public String getReceiverDep() {
        return this.receiverDep;
    }

    public void setReceiverDep(String receiverDep) {
        this.receiverDep = receiverDep;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    public List<CodeData> getDeps() {
        return deps;
    }

    public void setDeps(List<CodeData> deps) {
        this.deps = deps;
    }

    @Override
    public String toString() {

        return new Gson().toJson(this);
    }

}